<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../../common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>审核组提交</title>
<link href="${css_ctx}/main_style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx }/common/js/proving.js"></script>
<script type="text/javascript" language="javascript">
 function submitMyFrom(path){
  document.getElementById('form1').action=path;
  document.getElementById('form1').submit();
 }

/*跳转菜单脚本*/
function MM_jumpMenu(targ,selObj,restore){ //v3.0
	eval("window.open('${ctx }/trains?cmd=submiting&tid="+selObj.options[selObj.selectedIndex].value+"','_self')");
}	

</script>
</head>

<body class="content_bg1">

<!-- 标题-->	
<div class="content_tittle">
审核组提交
</div>
<!--  标题  end-->	

<!-- 提示信息 -->	
<c:if test="${!empty msg}">
	<div class="mag1">提示信息：${msg}</div>
	<c:remove var="msg" scope="session"/>
</c:if>
<!-- 提示信息  end-->	


<table width="820" border="0" cellspacing="0" cellpadding="0" class="content_input">
  <tr>
    <td height="30" align="center">车站选择:</td>
    <td height="30">
    <form method="post" id="form1" name="form1">
		<select name="station" onchange="MM_jumpMenu('parent',this,1)">
			<c:forEach items="${trains}" var="train" varStatus="status">
				<option value="${train.tid}" <c:if test="${train.tid eq number}" >selected="selected"</c:if>>${train.tname}</option>
			</c:forEach>
		</select>
	&nbsp;&nbsp;
	<font color="red">【请选择你要提交的车站】</font>
	</form>
    </td>
  </tr>
  <tr>
    <td height="30" align="center">当前状态:</td>
    <td height="30">
     <c:if test="${'0' eq train.shtstate}">未审核</c:if>
	 <c:if test="${'1' eq train.shtstate}"><font color="green">已审核</font></c:if>
    </td>
  </tr>
  <tr>
    <td height="30" align="center">信息提示:</td>
    <td height="30" style="line-height: 150%;">
            该车站的状态为"未提交"状态时才能在此提交！<br />
	<font color="red">但未通过段长组审核时，车站的状态将自动改为"未提交"。</font>
    </td>
  </tr>
  <tr>
   <c:if test="${'0' eq train.shtstate}">
    
    <td></td>
    <td height="30">
    <form action="${ctx }/trains?cmd=submit" method="post">
    	<input type="hidden" name="tid" value="${train.tid }"/>
		<input type="submit" value="提交" onmousedown="return input_che(form1);" class="btn1_mouseout" onmouseover="this.className='btn1_mouseover'" onmouseout="this.className='btn1_mouseout'" />
    	<input type="button" name="Submit" onclick="javascript:history.back(-1);" value="返回上一页" class="btn1_mouseout" onmouseover="this.className='btn1_mouseover'" onmouseout="this.className='btn1_mouseout'" />
   	</form>
   	</td>
   </c:if>
   <c:if test="${'1' eq train.shtstate}">
    <td height="30" align="center" colspan="2">
    <form action="${ctx }/trains?cmd=submitcancel" method="post">
    	<input type="hidden" name="tid" value="${train.tid }"/>
		<input type="submit" value="取消提交" onmousedown="return input_che(form1);" class="btn1_mouseout" onmouseover="this.className='btn1_mouseover'" onmouseout="this.className='btn1_mouseout'" />
    	当你操作失误提交了，可以执行“取消提交”。但段长组审核后“取消提交”将会出错。
	</form>
	</td>
   </c:if>
  </tr>
</table>


</body>
</html>
